import { Provide } from '@midwayjs/decorator';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository  } from 'typeorm'
import { StudentsEntity } from '../entity/studentinfo';
// import { StudentsinfoDTO } from '../dto/studentsinfo';

/**
 * 描述
 */
@Provide()
export class StudentService  {
  @InjectEntityModel(StudentsEntity)
  StudentsModel: Repository<StudentsEntity>;

  /**
   * 描述
   */
  // async addinfo(data:StudentsinfoDTO) {
  async addinfo() {
      //   this.StudentsModel.createQueryBuilder()
      // .insert()
      // .values({ ...data })
      // .execute()

      return {
         code:"20000",
         message:"成功",
        
      }
  }
}
